import 'package:flutter/material.dart';
import 'package:sil_base_widget_package/sil_base_widget_package.dart';

import '../../../../common/widgets/cubitWidget/DividingLine.dart';
import '../../../../utils/color/ColorUtils.dart';

class HelpTitleView extends StatelessWidget {
  final String title;
  /// 分割线间距,默认12
  final double? dividingLineSpace;
  const HelpTitleView({required this.title,this.dividingLineSpace, Key? key }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          SilText(
            this.title,
            fontSize: 18.sp,
            color: ColorUtils.color_font_main,
            fontWeight: FontWeight.w500,
          ),
          Padding(padding: EdgeInsets.only(top:this.dividingLineSpace ?? 12.w)),
          DividingLine(),
        ],
      ),
    );
  }
}